package com.bdqn.mapper;

import com.bdqn.pojo.SysUser;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/**
 * 继承SqlSessionDaoSupport抽象类实现（通过getSqlSession()方法获得SqlSession对象操作数据库）
 *
 * @author LILIBO
 * @since 2021-05-14
 */
public class SysUserMapperDaoSupportImpl extends SqlSessionDaoSupport implements SysUserMapper {

    /**
     * 查询用户列表
     *
     * @param sysUser
     * @return
     */
    @Override
    public List<SysUser> selectSysUserList(SysUser sysUser) {
        return this.getSqlSession().selectList("com.bdqn.mapper.SysUserMapper.selectSysUserList", sysUser);
    }

    /**
     * 保存用户
     *
     * @param sysUser
     * @return
     */
    @Override
    public int add(SysUser sysUser) {
        return 0;
    }

}
